package edu.ptu.shortlink.admin.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @BelongsProject: short-link
 * @BelongsPackage: edu.ptu.shortlink.admin.config
 * @Author: HYJ
 * @CreateTime: 2025-05-14  22:14
 * @Description: 用户流控配置类
 * @Version: 1.0
 */
@Data
@Component
@ConfigurationProperties(prefix = "short-link.flow-window")
public class UserFlowRiskControlConfiguration {
    /**
     * 是否开启用户流控
     */
    private Boolean enable;

    /**
     * 时间窗口
     */
    private String timeWindow;

    /**
     * 最大访问次数
     */
    private Long maxAccessCount;
}
